package com.shaobufan.stellardeal.controller;

import com.shaobufan.stellardeal.service.AllUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags="用户管理")
@RestController
@RequestMapping("/alluser")
public class AllUserController {
    @Resource
    private AllUserService allUserService;
    @ApiOperation("用户注册")
    @PostMapping("/register")
    public long userRegister(String username, String passwordHash, String email) {
        // TODO 实现注册细节
        return allUserService.userRegister(username, passwordHash, email);
    }
}
